package com.rzico.sbl.ui.report_0537

import android.os.Parcelable
import kotlinx.parcelize.Parcelize

/**
 * 描 述：
 * 作 者：小卷毛  2021-05-21 15:01
 * 修改描述：
 * 修 改 人：
 * 修改版本：
 */
@Parcelize
data class QFOrderModel(
    var start: Int = 0,
    var recordsTotal: Int = 0,
    var data: ArrayList<QFOrderData> = ArrayList()
) : Parcelable

@Suppress("unused")
@Parcelize
data class QFOrderData(
    var id: String = "",
    var name: String? = "",
    var memberId: String = "",
    var orderSn: String = "",
    var sn: String = "",
    var createDate: String = "",
    var orderDate: String? = "",
    var hopeDate: String? = "",
    var estimateDate: String? = "",
    var statusDescr: String = "",
    var status: String = "",
    var quantity: String = "",
    var amount: String? = "",
    var consignee: String? = "",
    var phone: String? = "",
    var address: String = "",
    var lat: String = "",
    var lng: String = "",
    var shippingSn: String? = "",
    var memo: String? = "",
    var rejectMemo: String? = "",
    var adminName: String? = "",
    var adminPhone: String? = "",
    var printStatus: String? = "",
    var methodDescr: String? = "",
    var payMethod: String? = "",
    var orderItems: ArrayList<QFOrderGoods> = ArrayList(),
    var shippingItems: ArrayList<QFOrderGoods> = ArrayList(),
    var isShipping: Boolean = false,
    var isFast: Boolean = false,
    var allowRob: Boolean = false,
    var check: Boolean = false
) : Parcelable {
    fun getIsShipping() = isShipping
    fun setIsShipping(isShipped: Boolean) {
        isShipping = isShipped
    }

    fun getIsFast() = isFast
    fun setIsFast(fast: Boolean) {
        isFast = fast
    }
}

@Parcelize
data class QFOrderHeader(
    var orderSN: String = "",
    var shippingSn: String = "",
    var shipId: String = "",
    var hint: String = "",
    var time: String = "",
    var position: Int = -1,
    var status: String = "",
    var status_hint: String = ""
) : Parcelable

@Suppress("unused")
@Parcelize
data class QFOrderGoods(
    var orderSN: String = "",
    var status: String = "",
    var shippingSn: String = "",
    var shipId: String = "",
    var position: Int = -1,
    var id: String = "",
    var productId: String = "",
    var goodsId: String = "",
    var thumbnail: String = "",
    var spec: String? = "",
    var name: String = "",
    var price: String? = "",
    var quantity: String = "",
    var hopeDate: String = "",
    var methodDescr: String = "",
    var consignee: String = "",
    var phone: String = "",
    var isGift: Boolean = false,
    var fast: Boolean = false
) : Parcelable {
    fun getIsGift() = isGift
    fun setIsGift(gift: Boolean) {
        isGift = gift
    }
}

@Parcelize
data class QFOrderFooter(
    var position: Int = -1,
    var id: String = "",
    var sn: String = "",
    var orderSN: String = "",
    var shippingSn: String = "",
    var status: String = "",
    var total_num: String = "",
    var amount: String = "",
    var name: String = "",
    var phone: String = "",
    var address: String = "",
    var memo: String = "",
    var rejectMemo: String = "",
    var adminName: String = "",
    var adminPhone: String = "",
    var createDate: String = "",
    var hopeDate: String = "",
    var estimateDate: String = "",
    var lng: String = "",
    var lat: String = "",
    var isShipping: Boolean = false,
    var allowRob: Boolean = false,
    var methodDescr: String = "",
    var printStatus: String = "",
    var hint_btn1: String = "",
    var hint_btn2: String = "",
    var hint_btn3: String = "",
    var hint_btn4: String = ""
) : Parcelable

@Parcelize
data class QFShipData(
    var id: String = "",
    var name: String = ""
) : Parcelable
